import animal.Dog;
import animal.Cat;
public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog();
        System.out.println(dog.name);
        dog.dogEat();
    }
    public static void main1(String[] args) {
        Dog dog = new Dog();
        dog.setName("大黄");
        dog.setAge(3);
        System.out.println("名字："+dog.getName());
        System.out.println("年龄："+dog.getAge());
        dog.bark();

        Cat cat = new Cat();
        cat.setName("小虎");
        cat.setAge(2);
        System.out.println("名字："+cat.getName());
        System.out.println("年龄："+cat.getAge());
        cat.mew();
    }
}
